<?php

namespace xing\privacyPhone;
/**
 *
 * @property \xing\privacyPhone\YiiPrivacyPhone $privacyPhone
 * @property drive\AliPrivacyPhone|drive\HuaWeiPrivacyPhone
 */
class YiiPrivacyPhone
{

    public $config;
    public $driveName;
    public $drive;

    /**
     * @return drive\AliPrivacyPhone|drive\HuaWeiPrivacyPhone
     */
    public function init()
    {
        $this->drive = PrivacyPhoneFactory::getInstance($this->driveName);
        return $this->drive::init($this->config);
    }
}
